﻿using System;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Controls;
using System.Windows;
using XAMLStylePad.ViewModels;
using FireFly;

namespace XAMLStylePad
{
    public class RelayCommand<VMT> : RelayCommand<VMT, IUIContext>
        where VMT: IViewModel
    {
        public RelayCommand(Action<CommandExecutionContext<VMT, IUIContext>> execute, Predicate<CommandExecutionContext<VMT, IUIContext>> canExecute, string cmdKey): 
            base(execute, canExecute, cmdKey)
        {
        }

        /// <summary>
        /// Constructor for command  that is always executable
        /// </summary>
        public RelayCommand(Action<CommandExecutionContext<VMT, IUIContext>> execute, string cmdKey) :
            base(execute, cmdKey)
        {
        }
    }
}